import java.util.Arrays;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: HP
 * Date: 2023 -04 -21
 * Time: 21:20
 */
public class MyString {
    private String str;
    public MyString(String s)
    {
        str=s;
    }

    public String[] mySplit(String regex){
        return str.split(regex);
    }

    public static String[] mySplit(String s,String regex)
    {
        return s.split(regex);
    }

    public static void main(String[] args) {
        System.out.println(Arrays.deepToString(mySplit("asb#?Gfj%123*hj","[#?%*]")));
    }
}
